{# 左侧菜单 #}
<div class="sidebar responsive" id="sidebar">
    <script type="text/javascript">
        try{ace.settings.check('sidebar', 'fixed')}catch(e){}
    </script>

    <!-- sidebar goes here -->
    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <button class="btn btn-success " onclick="switchLuange('zh-CN')"><i class="ace-icon fa fa-signal"></i></button>
            <button class="btn btn-info" onclick="switchLuange('en')"><i class="ace-icon fa fa-pencil"></i></button>
            <button class="btn btn-warning"><i class="ace-icon fa fa-users"></i></button>
            <button class="btn btn-danger"><i class="ace-icon fa fa-question"></i></button>
        </div>
        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>

            <span class="btn btn-info"></span>

            <span class="btn btn-warning"></span>

            <span class="btn btn-danger"></span>
        </div>
    </div>

    {{ knp_menu_render('IcsocMenuBundle:Builder:mainMenu', {'compressed': true}) }}

    <div id="sidebar-collapse" class="sidebar-toggle sidebar-collapse">
        <i data-icon2="ace-icon fa fa-angle-double-right" data-icon1="ace-icon fa fa-angle-double-left" class="ace-icon fa fa-angle-double-left"></i>
    </div>

    <script type="text/javascript">
        try{ace.settings.check('sidebar', 'collapsed')}catch(e){}
        function switchLuange(lan) {
            {#$.get('{{ path('system_user_set_lang') }}',{'lan':lan},function(data){#}
                {#location.href='';#}
            {#});#}
        }
    </script>
</div>